﻿using System.Windows;
using System.Windows.Controls;

namespace SilverlightHVP.View
{

   // For now SmoothStreamFramerView is hardwired to hold smooth stream player
   public partial class SmoothStreamFramerView : UserControl
   {
      private SmoothStreamPlayerView player;
      public SmoothStreamFramerView()
      {
         InitializeComponent();
         Loaded += new RoutedEventHandler( SmoothStreamFramer_Loaded );
         player = new SmoothStreamPlayerView();
      }

      public SmoothStreamPlayerView SetViewModel( ViewModel.FramerViewModel viewModel )
      {
         return player;
      }

      void SmoothStreamFramer_Loaded( object sender, RoutedEventArgs e )
      {
         
         
     //    player.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
       //  player.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;
         FramerFrame.Content = player;
      }
   }
}
